import axios from 'axios'

export const getWearher=(data)=>{
    return axios ({
        method:'get',
        url:'https://api.vvhan.com/api/weather?city=北京&type=week',
        data
    })
}

// 学生分布情况
export const getxuefen=()=>{ 
    return axios ({
        url:'http://localhost:3002/v1.0/api/intelligentDetection/data',
        method:'get'
    })
}

// 水电用量
export const getshuidian=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/intelligentDetection/dataTop',
        method:'get'
    })
}

// 校园人员流动情况
export const getliudong=()=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/intelligentDetection/dataBottom',
        method:'get'
    })
}

// 毕业人员去向

export const getquixiang=(params)=>{
    return axios({
        url:'http://localhost:3002/v1.0/api/student/stats/byAreaCode',
        method:'get',
        params
    })
}